#include <stdio.h>

typedef struct STUDENT {
    long stuID;
    char stuName[10];
    char stuSex;
    int birthYear;
    int mathScore;
    int englishScore;
    int computerScore;
    int programScore;
} student;

int main() {

    student stu1;
    printf("请输入学生信息：\n");
    printf("学号：");
    scanf("%ld", &stu1.stuID);
    printf("姓名：");
    scanf("%s", stu1.stuName);
    printf("性别：");
    scanf("%c", &stu1.stuSex);
    printf("出生年份：");
    scanf("%d", &stu1.birthYear);
    printf("数学成绩：");
    scanf("%d", &stu1.mathScore);
    printf("英语成绩：");
    scanf("%d", &stu1.englishScore);
    printf("计算机成绩：");
    scanf("%d", &stu1.computerScore);
    printf("程序设计成绩：");
    scanf("%d", &stu1.programScore);


    printf("stu1地址%p\n", &stu1);
    printf("studentID=%ld, stuName=%s, stuSex=%c, birthYear=%d, mathScore=%d ,englishScore=%d,computerScore=%d,programScore=%d \n",
           stu1.stuID, stu1.stuName, stu1.stuSex, stu1.birthYear, stu1.mathScore, stu1.englishScore, stu1.computerScore, stu1.programScore);
}